﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Pay.TO;

namespace Pay.DTO {
	
    /// <summary>
    /// 购物车列表
    /// </summary>
    [Serializable]
    public class cart_ex {
        /// <summary>
        /// 初始化对象
        /// </summary>
        public cart_ex() {
            carts = new List<cart_dto>();
        }
        /// <summary>
        /// 商家编号
        /// </summary>
        public long merchant_id { get; set; }
        /// <summary>
        /// 集散地名称
        /// </summary>
        public string entrepot_name { get; set; }
        /// <summary>
        /// 店铺名称
        /// </summary>
        public string shop_name { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string logo { get; set; }
        /// <summary>
        /// 购物车商品
        /// </summary>
        public List<cart_dto> carts;
    }

    /// <summary>
    /// 购买商品
    /// </summary>
    
    public class cart_items {
        public cart_items() {
            User = new merchant_dto();
            product = new product_dto();
            product_sku = new product_sku_dto();
        }


        /// <summary>
        /// id    
        /// </summary>
        public long id { get; set; }
        /// <summary>
        /// 用户id      
        /// </summary>
        public long merchant_id { get; set; }
        /// <summary> 
        /// 产品Id
        /// </summary>
        public long product_id { get; set; }
        /// <summary>
        /// SKUID
        /// </summary>
        public long sku_id { get; set; }


        /// <summary>
        /// 购买数量
        /// </summary>
        public int quantity { get; set; }

        /// 用户
        /// </summary>
        public virtual merchant_dto User { get; set; }
        /// <summary>
        /// 产品
        /// </summary>
        public virtual product_dto product { get; set; }
        /// <summary>
        /// 规格表
        /// </summary>
        public virtual product_sku_dto product_sku { get; set; }
    }
}